package com.donghua.dao;

import com.donghua.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    User selectById(int id);

    User selectByName(String username); //username是邮箱

    User selectByNickName(String nickName);

    int insertUser(User user);

    int updateStatus(int id, int status);

    int updateHeader(int id, String headerUrl);

    int updateBackground(int id, String backgroundUrl);

    int updatePassword(int id, String password);

    int updateNickName(int id, String nickName);

    int updateDescription(int id, String description);


}
